package dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import pojo.Student;

import java.util.List;

@Mapper
public interface StudentDao {
    //定义行为

    //查询学生

    // 定义行为  crud
    // 查询用户
    List<Student> findAll(@Param("studentName") String studentName, @Param("offset")int offset, @Param("pageSize")int pageSize);
    List<Student> findAll2(@Param("student") Student stu,@Param("offset")int offset,@Param("pageSize")int pageSize);


    int count(Student stu);

    int deleteStudentById(int id);

    int addStudent(Student stu);

    Student findStudentById(int id);

    int updateStudent(Student stu);


}
